<!--
  #%L
  thinkbig-ui-feed-manager
  %%
  Copyright (C) 2017 ThinkBig Analytics
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->
<div class="md-padding">

  <div ng-if="vm.editSla == null" layout="row" flex layout-fill layout-padding>
    <md-input-container flex style="margin-top:0px;margin-bottom:0px;">
      <label>过滤</label>
      <input ng-model="vm.filter"/>
    </md-input-container>
    <div layout="row" layout-align="space-between center">
    <tba-view-type-selection view-type="vm.viewType" style="margin-left:10px;"></tba-view-type-selection>
    <tba-options-menu sort-options="vm.sortOptions" show-pagination="false" menu-key="{{vm.pageName}}" selected-option="vm.selectedTableOption" show-view-type="false"
                      menu-icon="more_vert"></tba-options-menu>
  </div>
</div>

<div>
  <span ng-if="vm.feed.state != 'ENABLED'">警告。 此管道被禁用。 服务级别协议可以修改，但是在启用此管道之前不能运行。</span>
  <ng-include src="'js/feed-mgr/sla/service-level-agreement-body.html'"></ng-include>
</div>
  <div flex layout="column" layout-align="center end" ng-if="vm.editSla == null && vm.allowEdit">
    <md-button class="md-primary" aria-label="Add" ng-click="vm.onNewSla($event)">提交 SLA</md-button>
  </div>


</div>
